<?php
return array(
	//'配置项'=>'配置值'
    'ACTION_SUFFIX'         =>  '', //操作方法后缀
    'URL_HTML_SUFFIX'       =>  '',
    'DEFAULT_ACTION' => 'index', // 默认操作名称

    //定义TREE组件路径
    'COMPONENTS' => array(
        'Tree' => array(
            'class' => '\\Tree',
            'path' => 'Libs.Util.Tree',
        ),
    ),



    //定义后台公模CSS,JS,IMAGES文件夹
    'TMPL_PARSE_STRING' =>  array(

        '__IMAGES__'    =>  WEB_URL.'/static/home/images',
        '__CSS__'       =>  WEB_URL.'/static/home/css',
        '__JS__'        =>  WEB_URL.'/static/home/js',
        '__COMMJS__'    =>  WEB_URL.'/static/js',
        '__WEBURL__'    =>  WEB_URL,
        '__FILESURL__'  =>  IMAGES_URL
    ),

    'URL_ROUTER_ON'  => true,
    'URL_MODEL'=>2,
    'URL_ROUTE_RULES'=> array(
        '/^category\/(\d+)$/'   =>'Index/category?cid=:1',
        '/^works\/(\d+)$/'   =>'Works/detail?workid=:1',
        '/^suipai\/(\d+)$/'   =>'Suipai/detail?workid=:1',
        '/^copy\/(\d+)$/'   =>'Copy/detail?workid=:1',

        '/^u\/(\d+)$/'   =>'Ucenter/index?openuid=:1',
        '/^u\/(\d+)\/([a-z]+)$/'   =>'Ucenter/index?openuid=:1&act=:2',

        '/^try\/detail\/(\d+)$/'   =>'Try/detail?tryid=:1',
        '/^jifen\/detail\/(\d+)$/'   =>'Jifen/detail?id=:1',
        '/^try\/reportdetail\/(\d+)$/'   =>'Try/reportdetail?id=:1',

        '/^us\/([a-zA-Z0-9_]+)$/'   =>'About/read?entitle=:1',

        '/^news\/(\d+)$/'   =>'News/read?id=:1',
        '/^activity\/(\d+)$/'   =>'Activity/read?id=:1',

        '/^teach\/(\d+)$/'   =>'Teach/detail?openuid=18937&teachid=:1',
    ),



);